<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="security" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>网站后台首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=9" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--框架必需start-->
	<link href="libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
	<link href="libs/skins/modernBlue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="modernBlue" positionTarget="positionContent" selInputHeight="28" selButtonWidth="29" defaultSelWidth="160" fileBtnWidth="60" defaultFileInputWidth="222" defaultGridHeaderHeight="32" defaultGridRowHeight="32" defaultFontSize="14" defaultPageSelWidth="55" defaultFilterItemHeight="28" defaultFontFamily="微软雅黑"/>
	<link href="static/skin/style.css" rel="stylesheet" type="text/css" id="skin" skinPath="static/skin/"/>
	<script type="text/javascript" src="libs/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="libs/js/language/cn.js"></script>
	<script type="text/javascript" src="libs/js/main.js"></script>
	<!--框架必需end-->
	<!--弹窗组件start-->
	<!-- <script type="text/javascript" src="libs/js/popup/drag.js"></script> -->
	<script type="text/javascript" src="libs/js/popup/dialog.js"></script>
	<!--弹窗组件end-->
	<script type="text/javascript">
		window.onload=function(){
			window.history.forward(1);
			if (top.location!=self.location){
				top.location.replace(self.location);
			}
		};
		function windowClose(){
			location.replace("${pageContext.request.contextPath}/j_spring_security_logout");
		}
		function backHome(){
			location.reload(true);
		}
		$(function(){
			var weekDayLabels = new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
			var now = new Date();
		    var year=now.getFullYear();
			var month=now.getMonth()+1;
			var day=now.getDate();
		    var currentime = year+"年"+month+"月"+day+"日 "+weekDayLabels[now.getDay()];
			$("#currentdate").html(currentime);
			$("#userSetting").click(function() {
				var diag = new top.Dialog();
				diag.Title = "用户设置";
				diag.IconClass = "icon_user";
				diag.Modal = true;
				diag.Width = 455;
				diag.Height = 255;
				diag.URL = "${pageContext.request.contextPath}/sys/user/setting";
				diag.show();
			});
		});
	</script>
  </head>
  <body>
	<div id="mainFrame">
		<!--头部与导航start-->
		<div id="hbox">
			<div id="bs_bannercenter"><div id="bs_bannerright"><div id="bs_bannerleft"></div></div></div>
			<div id="bs_navcenter">
				<div id="bs_navleft">
					<div id="bs_navright">
						<div class="bs_nav">
							<div class="bs_navleft">
								<li class="fontTitle">字号:</li>
								<li class="fontChange"><span><a href="javascript:;" setFont="16">大</a></span></li>
								<li class="fontChange"><span><a href="javascript:;" setFont="14">中</a></span></li>
								<li class="fontChange"><span><a href="javascript:;" setFont="12">小</a></span></li>
								<div class="clear"></div>	
							</div>	
							<div class="bs_navleft">
								<li class="fontTitle">字体:</li>
								<li class="fontFamily"><span><a href="javascript:;" setFont="宋体">宋</a></span></li>
								<li class="fontFamily"><span><a href="javascript:;" setFont="微软雅黑">雅</a></span></li>
								<div class="clear"></div>	
							</div>
							<div class="float_left" style="padding:2px 0 0 60px;" id="positionContent"></div>	
							<div class="float_right padding_top2 padding_right5">
								<span class="icon_user hand" id="userSetting">用户设置</span>
								<span class="icon_home hand" onclick='backHome()'>首页</span>
								<span class="icon_fullscreen hand" id="fullSrceen" hideNav="true">全屏</span>
								<span class="icon_exit hand" onclick='top.Dialog.confirm("确定要退出系统吗？",function(){windowClose()});'>退出</span>
								<div class="clear"></div>
							</div>
							<div class="float_right padding_top2 padding_right5">
								欢迎<security:authentication property="principal.userAccount"/>，【今天是<span id="currentdate"></span>】
							</div>	
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--头部与导航end-->
		 <div id="mainLayout">
		    <div position="left">
				<div id="lbox">
					<div id="lbox_topcenter"><div id="lbox_topleft"><div id="lbox_topright"><div class="lbox_title">操作菜单</div></div></div></div>
					<div id="lbox_middlecenter">
						<div id="lbox_middleleft">
							<div id="lbox_middleright">
								<div id="bs_left" style="width:100%;">
									<IFRAME height="100%" width="100%" frameBorder=0 id=frmleft name=frmleft src="sys/left" allowTransparency="true"></IFRAME>
								</div>
								<!--更改左侧栏的宽度需要修改id="bs_left"的样式-->
							</div>
						</div>
					</div>
					<div id="lbox_bottomcenter"><div id="lbox_bottomleft"><div id="lbox_bottomright"><div class="lbox_foot"></div></div></div></div>
				</div>
		    </div>
		    <div position="center">
		   		<div class="ali01 ver01"  width="100%">
					<div id="rbox">
						<div id="rbox_topcenter"><div id="rbox_topleft"><div id="rbox_topright"></div></div></div>
						<div id="rbox_middlecenter">
							<div id="rbox_middleleft">
								<div id="rbox_middleright">
									<div id="bs_right">
							     		<IFRAME height="100%" width="100%" frameBorder=0 id=frmright name=frmright src="sys/right" allowTransparency="true"></IFRAME>
									</div>
								</div>
							</div>
						</div>
						<div id="rbox_bottomcenter" ><div id="rbox_bottomleft"><div id="rbox_bottomright"></div></div></div>
					</div>
				</div>
		    </div>
		</div> 
		<!--尾部区域start-->
		<div id="fbox">
			<div id="bs_footcenter"><div id="bs_footleft"><div id="bs_footright"></div></div></div>
		</div>
		<!--尾部区域end-->
		</div>
		<!--浏览器resize事件修正start-->
		<div id="resizeFix"></div>
		<!--浏览器resize事件修正end-->
		<!--窗口任务栏区域start-->
		<div id="dialogTask" class="dialogTaskBg" style="display:none;"></div>
		<!--窗口任务栏区域end-->
		<!--载进度条start-->
		<div class="progressBg" id="progress" style="display:none;"><div class="progressBar"></div></div>
		<!--载进度条end-->
	</body>
</html>
